<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>Corn弹出示例</title>
		<meta name="renderer" content="webkit" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
		<link rel="stylesheet" href="../static/layui/css/layui.css" media="all" />
		<style type="text/css">
			html{
				background-color: #f2f2f2;
				color: #666;
			}
			.layui-fluid{
				padding: 15px;
			}
		</style>
	</head>
	<body>
		<div class="layui-fluid">
			<div class="layui-card">
				<div class="layui-card-header">组件显示不开时需要滚动</div>
				<div class="layui-card-body">
					<input id="cron" class="layui-input" />
				</div>
			</div>
		</div>

		<script src="../static/layui/layui.js?t=1"></script>
		<script>
			layui
				.config({
					base: "../static/layui_exts/"
				})
				.extend({
					cron: "cron/cron",
				})
				.use(["cron"], function() {
					var $ = layui.$,
						cron = layui.cron;
					cron.render({
						elem: "#cron", // 绑定元素
						run: "../static/json/run.json", // 获取最近运行时间的接口
						done: function(cronStr) {
							console.log(cronStr);
						},
					});



				});
		</script>
	</body>
</html>
